﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="main.aspx.cs" Inherits="LHWebApp.main" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    
    <title>联合远航GPS车辆监控调度系统</title>
	<meta http-equiv="pragma" content="no-cache"/>
	<meta http-equiv="cache-control" content="no-cache"/>
	<meta http-equiv="expires" content="0"/>
	<meta http-equiv="keywords" content=""/>
	<meta http-equiv="description" content=""/>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />

    <link rel="stylesheet" type="text/css" href="ext/resources/css/ext-all.css"/>
    <link rel="stylesheet" type="text/css" href="css/main.css"/>
      <script type="text/javascript">
          var userName = '<%=userInfo.UserName%>';
          var userClientNo = '<%=userInfo.ClientNo%>';
          var userClientName = '<%=userInfo.ClientName%>';
          var userRoleName = '<%=userInfo.RoleName%>';
          var rootPath = '<%=rootPath%>';
          var loginUsername = '<%=userInfo.loginUsername%>';
          var loginPassword = '<%=userInfo.loginPassword%>';
          var currentService = GetQueryValue1("currentService");
                  function GetQueryValue1(queryName) {
                      var reg = new RegExp("(^|&)" + queryName + "=([^&]*)(&|$)", "i");
                      var r = window.location.search.substr(1).match(reg);
                      if (r != null) {
                          return decodeURI(r[2]);
                      } else {
                          return null;
                      }
                  }

                 window.onresize = function() {
                  //location.reload();
                  if (hisPlayWin != null) {
                      hisPlayWin.setWidth(document.body.clientWidth);
                      hisPlayWin.setHeight(document.body.clientHeight);
                      }
                      if (Electronicfencewin != null) {
                          Electronicfencewin.setWidth(document.body.clientWidth);
                          Electronicfencewin.setHeight(document.body.clientHeight);
                      }
                  } //窗口改变大小后，自动刷新

//                  {
//                      var window = new Ext.Window({
//                          title: "实时监控视频",
//                          layout: 'fit',       //弹出窗口内布局会充满整个窗口;
//                          width: 830,          //设置窗口大小;
//                          height: 540,
//                          //items: tabPanel         //默认会生成Ext.Panel类型的对象;并且随窗口大小改变而改变;
//                          items: [{
//                              html: '<iframe src="./html/DunCount/DunWindow.aspx?userClientNo=' + userClientNo + '&currentService=' + currentService + ' "width="100%" height="100%"></iframe>'
//                          }]
//                      });
//                      window.show();
//                  }

	</script>

</head>
<body>
    <form id="form1" runat="server">
    <div id="loading-mask" style=""></div>
    <div id="loading">
        <div class="loading-indicator"><img src="./images/blue-loading.gif" width="32" height="32" style="margin-right:8px;float:left;vertical-align:top;"/>
        <span id="loading-msg">开始载入...</span></div>
    </div>


        <script type="text/javascript">document.getElementById('loading-msg').innerHTML = '正在载入程序...';</script>
       <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=4HzsadCh4FDh1Eukq2shC3WT"></script>
	    <script type="text/javascript" src="./js/window.js"></script>
        <script type="text/javascript" src="ext/adapter/ext/ext-base.js"></script>
        <script type="text/javascript" src="ext/ext-all.js"></script>
        <script type="text/javascript" src="ext/ext-lang-zh_CN.js"></script>
        <script type="text/javascript" src="./js/DateTimeField.js"></script>
        <script type="text/javascript" src="./js/Spinner.js"></script>
        <script type="text/javascript" src="./js/SpinnerField.js"></script>
        <script type="text/javascript" src="./js/main.js"></script>
        <script type="text/javascript" src="./js/global.js"></script>
        <script type="text/javascript" src="./js/historyplay.js"></script>
        <script type="text/javascript" src="./js/carListPanel.js"></script>
        <script type="text/javascript" src="./js/carTreePanel.js"></script>
        <script type="text/javascript" src="./js/mainPanel.js"></script>
        <script type="text/javascript" src="./js/alarm.js"></script>
        <script type="text/javascript" src="./js/rectangle.js"></script>
        <script type="text/javascript" src="./js/alarmQuery.js"></script>
        <script type="text/javascript" src="./js/WeightForDistrictCLC.js"></script>
        <script type="text/javascript" src="./js/WeightForDistrictZZZ.js"></script>
        <script type="text/javascript" src="./js/WeightForFactoryCLC.js"></script>
        <script type="text/javascript" src="./js/WeightVehicle.js"></script>
        <script type="text/javascript" src="./js/MenuToilet.js"></script>

    <div id="west" class="x-hide-display">
    </div>
    <div id="divMainMap" class="x-hide-display">
    </div>
    <div id="props-panel" class="x-hide-display" style="width:200px;height:200px;overflow:hidden;">
    </div>
    <div id="south" class="x-hide-display">
    </div>
    <div id="tree"></div>
    <div id="trackplaydata" class="x-hide-display"></div>
    <bgsound loop="1" id="bgs"/> 
    </form>
</body>
</html>
